package cn.tedu.bs.admin.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class BankAddNewParam implements Serializable {
    @NotNull(message = "添加美容库存失败，必须提交美容库存名称！")
    @ApiModelProperty(value = "美容库存名称", required = true, example = "可乐的美容库存")
    private String productName;

    @NotNull(message = "必须提交库存数量")
    @Range(min = 0, message = "库存值必须是大于等于0的整数")
    @ApiModelProperty(value = "库存值必须是大于等于0的整数", required = true, example = "0")
    private Integer bankNumber;

    @NotNull(message = "必须提交美容库存类型")
    @ApiModelProperty(value = "美容库存类型", required = true, example = "类型3")
    private String type;

//    @ApiModelProperty(value = "美容库存图片链接", required = true, example = "/kucunxinxi_zhaopian1.jpg")
//    private String picture;

    @NotNull(message = "必须提交美容库存统计日期")
    @ApiModelProperty(value = "美容库存统计日期", required = true, example = "2017-01-01 00:29:30")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

}
